#include<iostream>
using namespace std;

int main()
{
    string s, t;
    bool flag = false;
    cin >> s;
    for (int i = s.size() - 1; i >= 0; i--)
        if (flag || s[i] != '0') {
            t += s[i];
            flag = true;
        }
    cout << t << endl;
    return 0;
}